package com.jdcjk.chat.enity;

import com.jdcjk.project.main.model.entity.CarWarningInfo;

import java.util.List;

/**
 * Created by Administrator on 2016/12/30 0030.
 */

public class MessageBean {

    /**
     * msgType : terminalStatus
     * terminalStatus
     * 终端状态信息:
     * {"altitude":12,"carColor":"0","carId":"汽车","cityId":"0","direction":0,displayid":"汽车","emergencyAlarm":false,"flgDeleted":false,"id":5,"latitude":23.158206,"longitude":113.4458,"mileage":0,"online":true,"powerword":"13632256297","provinceId":"0","register":1,"registerlog":"注册成功","simNum":"13632256297","speed":0,"terminalNumber":"1234","userDtos":[]}
     */

    private String msgType;
    private TerminalStatusBean terminalStatus;

    /**
     * 终端位置信息
     * location : {"acc":false,"altitude":0,"displayid":"汽车","dw":"已定位","emergencyAlarm":false,"id":80,"isdw":0,"latitude":23.15843,"longitude":113.44508}
     */
    private LocationBean location;

    /**
     * 报警信息
     */
    private CarWarningInfo warning;

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public TerminalStatusBean getTerminalStatus() {
        return terminalStatus;
    }

    public void setTerminalStatus(TerminalStatusBean terminalStatus) {
        this.terminalStatus = terminalStatus;
    }

    public LocationBean getLocation() {
        return location;
    }

    public void setLocation(LocationBean location) {
        this.location = location;
    }

    public CarWarningInfo getWarming() {
        return warning;
    }

    public void setWarning(CarWarningInfo warming) {
        this.warning = warming;
    }

    public static class TerminalStatusBean {

        /**
         * acc : true
         * altitude : 49
         * carColor : 0
         * carId : 汽车
         * cityId : 0
         * createdTime : 2016-12-30 14:45:24
         * direction : 0
         * displayid : 汽车
         * dw : 已定位
         * emergencyAlarm : false
         * flgDeleted : false
         * id : 5
         * isdw : 1
         * latitude : 23.156896
         * longitude : 113.445944
         * mileage : 0
         * online : false
         * powerword : 13632256297
         * provinceId : 0
         * register : 1
         * registerlog : 注册成功
         * simNum : 13632256297
         * speed : 0
         * terminalNumber : 1
         * updatedTime : 2017-01-09 11:28:04
         * userDtos : []
         */

        private boolean acc;
        private double altitude;
        private String carColor;
        private String carId;
        private String cityId;
        private String createdTime;
        private float direction;
        private String displayid;
        private String dw;
        private boolean emergencyAlarm;
        private boolean flgDeleted;
        private int id;
        private int isdw;
        private double latitude;
        private double longitude;
        private int mileage;
        private boolean online;
        private String powerword;
        private String provinceId;
        private int register;
        private String registerlog;
        private String simNum;
        private float speed;
        private String terminalNumber;
        private String updatedTime;
        private List<?> userDtos;

        public boolean isAcc() {
            return acc;
        }

        public void setAcc(boolean acc) {
            this.acc = acc;
        }

        public double getAltitude() {
            return altitude;
        }

        public void setAltitude(double altitude) {
            this.altitude = altitude;
        }

        public String getCarColor() {
            return carColor;
        }

        public void setCarColor(String carColor) {
            this.carColor = carColor;
        }

        public String getCarId() {
            return carId;
        }

        public void setCarId(String carId) {
            this.carId = carId;
        }

        public String getCityId() {
            return cityId;
        }

        public void setCityId(String cityId) {
            this.cityId = cityId;
        }

        public String getCreatedTime() {
            return createdTime;
        }

        public void setCreatedTime(String createdTime) {
            this.createdTime = createdTime;
        }

        public float getDirection() {
            return direction;
        }

        public void setDirection(float direction) {
            this.direction = direction;
        }

        public String getDisplayid() {
            return displayid;
        }

        public void setDisplayid(String displayid) {
            this.displayid = displayid;
        }

        public String getDw() {
            return dw;
        }

        public void setDw(String dw) {
            this.dw = dw;
        }

        public boolean isEmergencyAlarm() {
            return emergencyAlarm;
        }

        public void setEmergencyAlarm(boolean emergencyAlarm) {
            this.emergencyAlarm = emergencyAlarm;
        }

        public boolean isFlgDeleted() {
            return flgDeleted;
        }

        public void setFlgDeleted(boolean flgDeleted) {
            this.flgDeleted = flgDeleted;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getIsdw() {
            return isdw;
        }

        public void setIsdw(int isdw) {
            this.isdw = isdw;
        }

        public double getLatitude() {
            return latitude;
        }

        public void setLatitude(double latitude) {
            this.latitude = latitude;
        }

        public double getLongitude() {
            return longitude;
        }

        public void setLongitude(double longitude) {
            this.longitude = longitude;
        }

        public int getMileage() {
            return mileage;
        }

        public void setMileage(int mileage) {
            this.mileage = mileage;
        }

        public boolean isOnline() {
            return online;
        }

        public void setOnline(boolean online) {
            this.online = online;
        }

        public String getPowerword() {
            return powerword;
        }

        public void setPowerword(String powerword) {
            this.powerword = powerword;
        }

        public String getProvinceId() {
            return provinceId;
        }

        public void setProvinceId(String provinceId) {
            this.provinceId = provinceId;
        }

        public int getRegister() {
            return register;
        }

        public void setRegister(int register) {
            this.register = register;
        }

        public String getRegisterlog() {
            return registerlog;
        }

        public void setRegisterlog(String registerlog) {
            this.registerlog = registerlog;
        }

        public String getSimNum() {
            return simNum;
        }

        public void setSimNum(String simNum) {
            this.simNum = simNum;
        }

        public float getSpeed() {
            return speed;
        }

        public void setSpeed(float speed) {
            this.speed = speed;
        }

        public String getTerminalNumber() {
            return terminalNumber;
        }

        public void setTerminalNumber(String terminalNumber) {
            this.terminalNumber = terminalNumber;
        }

        public String getUpdatedTime() {
            return updatedTime;
        }

        public void setUpdatedTime(String updatedTime) {
            this.updatedTime = updatedTime;
        }

        public List<?> getUserDtos() {
            return userDtos;
        }

        public void setUserDtos(List<?> userDtos) {
            this.userDtos = userDtos;
        }
    }

    public static class LocationBean {
        /**
         * acc : true
         * altitude : 18
         * direction : 0
         * displayid : 汽车
         * dw : 已定位
         * emergencyAlarm : false
         * flgDeleted : false
         * id : 2357
         * isdw : 1
         * latitude : 23.156896
         * locationTime : 2017-01-09 11:04:33
         * longitude : 113.445944
         * speed : 0
         * terminalId : 5
         * updateTime : 2017-01-09 11:04:50
         */

        private boolean acc;
        private double altitude;
        private float direction;
        private String displayid;
        private String dw;
        private boolean emergencyAlarm;
        private boolean flgDeleted;
        private int id;
        private int isdw;
        private double latitude;
        private String locationTime;
        private double longitude;
        private float speed;
        private int terminalId;
        private String updateTime;


        public void setLatLng(double latitude, double longitude) {
            setLatitude(latitude);
            setLongitude(longitude);
        }

        public boolean isAcc() {
            return acc;
        }

        public void setAcc(boolean acc) {
            this.acc = acc;
        }

        public double getAltitude() {
            return altitude;
        }

        public void setAltitude(double altitude) {
            this.altitude = altitude;
        }

        public float getDirection() {
            return direction;
        }

        public void setDirection(float direction) {
            this.direction = direction;
        }

        public String getDisplayid() {
            return displayid;
        }

        public void setDisplayid(String displayid) {
            this.displayid = displayid;
        }

        public String getDw() {
            return dw;
        }

        public void setDw(String dw) {
            this.dw = dw;
        }

        public boolean isEmergencyAlarm() {
            return emergencyAlarm;
        }

        public void setEmergencyAlarm(boolean emergencyAlarm) {
            this.emergencyAlarm = emergencyAlarm;
        }

        public boolean isFlgDeleted() {
            return flgDeleted;
        }

        public void setFlgDeleted(boolean flgDeleted) {
            this.flgDeleted = flgDeleted;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getIsdw() {
            return isdw;
        }

        public void setIsdw(int isdw) {
            this.isdw = isdw;
        }

        public double getLatitude() {
            return latitude;
        }

        public void setLatitude(double latitude) {
            this.latitude = latitude;
        }

        public String getLocationTime() {
            return locationTime;
        }

        public void setLocationTime(String locationTime) {
            this.locationTime = locationTime;
        }

        public double getLongitude() {
            return longitude;
        }

        public void setLongitude(double longitude) {
            this.longitude = longitude;
        }

        public float getSpeed() {
            return speed;
        }

        public void setSpeed(float speed) {
            this.speed = speed;
        }

        public int getTerminalId() {
            return terminalId;
        }

        public void setTerminalId(int terminalId) {
            this.terminalId = terminalId;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        @Override
        public String toString() {
            return "LocationBean{" +
                    "acc=" + acc +
                    ", altitude=" + altitude +
                    ", direction=" + direction +
                    ", displayid='" + displayid + '\'' +
                    ", dw='" + dw + '\'' +
                    ", emergencyAlarm=" + emergencyAlarm +
                    ", flgDeleted=" + flgDeleted +
                    ", id=" + id +
                    ", isdw=" + isdw +
                    ", latitude=" + latitude +
                    ", locationTime='" + locationTime + '\'' +
                    ", longitude=" + longitude +
                    ", speed=" + speed +
                    ", terminalId=" + terminalId +
                    ", updateTime='" + updateTime + '\'' +
                    '}';
        }
    }
}
